import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.Reader;
import java.util.Properties;

import org.apache.i18n.tools.PropertiesFileFilter;
import org.apache.i18n.translater.PowerTranslater;
import org.apache.i18n.translater.Translater;
import org.apache.i18n.translater.TranslaterFactory;




public class TranslateTomcatDir {
	

	public static void main(String[] args) {

		
		Translater createTranslater = TranslaterFactory.createTranslater(Translater.MAP);
		PowerTranslater translater=new PowerTranslater(createTranslater);
		FileFilter filter=new PropertiesFileFilter();
		translater.translatePropertiesDir(new File("../tomcat-zh/src")
		       ,new File("../tomcat-zh/src_zh"),
				filter, "_zh", Apache.ASL);
		
		
		

		
	}

	

}
